package com.ai.zuochengyun.phase01.class06;

/**
 * 边结构
 */
public class Edge {

    public int weight;

    /**
     * 从哪个节点出发
     */
    public Node from;

    /**
     * 指向哪个节点
     */
    public Node to;

    public Edge(int weight, Node from, Node to) {
        this.weight = weight;
        this.from = from;
        this.to = to;
    }
}
